package cn.meomis.dao.imp;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;
import org.springframework.stereotype.Repository;

import cn.meomis.common.dao.BaseDaoHibernate;
import cn.meomis.common.entity.Pagination;
import cn.meomis.dao.ValueDetailDao;
import cn.meomis.model.ValueDetail;


@Repository
public class ValueDetailDaoImpl extends BaseDaoHibernate<ValueDetail> implements ValueDetailDao {

	@Override
	public Pagination pageQueryByHql(String hql, Object[] values,
			String countHql, int pageNumber, int pageSize) {
		return this.pageQuery( hql,  values,  countHql,  pageNumber,  pageSize);
	}

	@Override
	public List<ValueDetail> queryListBycriteria(DetachedCriteria criteria) {
		return (List<ValueDetail>) this.queryList(criteria);
	}
	
//	public List<ValueDetail> findByCriteria(DetachedCriteria criteria) {
//		return (List<ValueDetail>) this.queryList(criteria);
//	}
    
}
